package com.qyhl.module_home.home.search;


import com.qyhl.webtv.commonlib.entity.home.NewsBean;

import java.util.List;

/**
 * Created by qyhl on 2017/11/17.
 */

public interface SearchContract {
    interface SearchView {
        void setData(List<NewsBean> beanList, boolean isMore);

        void setEmpty(String msg);

        void setNetError(String msg);

        void showMessage(String msg);

        void showError(String msg);
    }

    interface SearchPresenter {
        void setError(int code, String msg);

        void setData(List<NewsBean> beanList, boolean isMore);

        void getData(String keyword, String newsId);

        void getList(String keyword, String newsId, String catalogId, int subCatalog);
    }

    interface SearchModel {
        void getData(String keyword, String newsId);

        void getList(String keyword, String newsId, String catalogId, int subCatalog);
    }
}
